package cn.zyl.demo.common.enums;

/**
 * ValidEnum枚举说明:状态枚举，true，false
 *
 * @author wsz
 * @version v1.0
 * @date 2020-07-22
 */
public enum ValidEnum {
    /** 有效，正确，true*/
    TRUE(1,"true"),
    /** 无效，错误，false*/
    FALSE(0,"false") ;
    private final Integer code;
    private final String value;
    ValidEnum(Integer code, String value) {
        this.code = code;
        this.value = value;
    }
    public Integer getCode() {
        return code;
    }
    public String getValue() {
        return value;
    }
}
